package com.sky.io;

import java.io.InputStream;

/**
 * @Description
 * @Author gaotianzhi
 * @Date 2023-10-31 15:12
 */
public class Resources {

    public static InputStream resourceAsStream(String path) {
        InputStream inputStream = Resources.class.getClassLoader().getResourceAsStream(path);
        if (inputStream == null) {
            throw new RuntimeException("加载配置文件失败！");
        } else
            return inputStream;
    }
}
